package com.w2cx.selenium.operate;

import com.w2cx.selenium.base.DriverBase;
import com.w2cx.selenium.page.CommentManagePage;

public class CommentManageOperate {

    DriverBase driver;
    CommentManagePage cmp;
    String status = null;

    public CommentManageOperate(DriverBase driver){
        this.driver = driver;
        cmp = new CommentManagePage(driver);
    }

    //点击内容审核
    public void clickContentReviewMenu(){
        cmp.click(cmp.getContentReviewMenu());
    }


    //点击评论管理
    public void clickCommentManage(){
        cmp.click(cmp.getCommentManageMenu());
    }


    //获取状态名称
    public String getStatusName(){
       return cmp.getFirstStatus().getText();
    }



    //点击第一条评论状态开关
    public void clickCommentStatus(){
        cmp.click(cmp.getFirstStatus());
    }





}
